1
2
3
4
5
6
7
8
9 package ca.uhn.cache.util;
10
11
12
13 /***
14 * Utility method to be used by the test cases that require spring.
15 *
16 * @author <a href="mailto:alexei.guevara@uhn.on.ca">Alexei Guevara</a>
17 * @version $Revision: 1.1 $ updated on $Date: 2005/01/24 22:52:00 $ by $Author: bryan_tripp $
18 */
19 public final class SpringTestCaseUtils {
20
21 /***
22 * Converts a package to a path.
23 *
24 * Ex.: ca.uhn.cache => ca/uhn/ca
25 *
26 * @param thePackage The package to convert.
27 * @return The coverted package path.
28 */
29 public static final String packageToPath( Package thePackage ) {/package-summary.html">ong> static final String packageToPath( Package thePackage ) {
30 return thePackage.getName().replaceAll( "//.", "/" );
31 }
32
33 /***
34 // * For example:
35 // *
36 // * The config location of the fixture foo.bar.TheFixtureTest is:
37 // *
38 // * foo/bar/spring-the-fixture.xml
39 // *
40 // * @param theClazz The test fixture class.
41 // * @return The location (path) of the <b>spring</b> configuration file for the test fixture.
42 // */
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60 }